home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000045_news@columbia.edu_Thu Jun 1 11:56:04 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA14679
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 2 Jun 1995 23:29:08 -0400
  3. Received: by apakabar.cc.columbia.edu id AA15198
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 2 Jun 1995 23:29:07 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!uhog.mit.edu!bloom-beacon.mit.edu!spool.mu.edu!torn!news.ccs.queensu.ca!news.ccs.queensu.ca!not-for-mail
  6. From: mike@knot.QueensU.CA (Mike Smith)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Kermit scripting problems
  9. Date: 1 Jun 1995 07:56:04 -0400
  10. Organization: Queen's University, Kingston
  11. Lines: 40
  12. Message-Id: <3qk9sk$5nm@ccs-sparc2.queensu.ca>
  13. References: <D9G96t.7DF@cunews.carleton.ca> <D9GEoA.KIK@cunews.carleton.ca>
  14. Nntp-Posting-Host: ccs-sparc2.ccs
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17.  
  18. I'm developing an ftp mimic for C-Kermit->MS-Kermit transfers and had
  19. the same problem.  The following macros will let you confirm that cd worked
  20. on MSK.  (I expect the technique generalizes to any apc initiated command
  21. but I have only tested cd.)
  22.  
  23. def cd -
  24.    apc cd \Fcontents(\%1), -
  25.    apcstat, -
  26.    if eq 0 \v(query) echo {250 CWD command successful.}, -
  27.    else echo {550 \Fcontents(\%1): No such file or directory}
  28.  
  29. def apcstat -
  30.    apc server, -
  31.    msleep 500, -
  32.    remote query kermit status, -
  33.    finish
  34.  
  35. The careful reader might wonder why I use apc cd rather than remote cd as
  36. in the following:
  37.  
  38. def cd1 -
  39.    apc server, -
  40.    msleep 500, -
  41.    remote cd \Fcontents(\%1), -
  42.    remote query kermit status, -
  43.    finish, -
  44.    if eq 0 \v(query) echo {250 CWD command successful.}, -
  45.    else echo {550 \Fcontents(\%1): No such file or directory}
  46.  
  47. The answer is it doesn't work.  I'm beginning to think this is a bug
  48. which I'll document and submit via e-mail with some test details to
  49. Columbia.
  50.  
  51.  
  52. -- 
  53.  
  54.  Mike Smith                                  mike@ccs.queensu.ca
  55.  Queen's University                          Michael.D.Smith@QueensU.CA
  56.  Computing and Communications Services       (613) 545-2024